import { axios } from '@/utils/request'

const api = {
  cateTreeList: '/adminapi/subject/cateTreeList',
  studentOptions: '/adminapi/exame/studentOptions',
  exameList: '/adminapi/exame/exameList',
  exameAdd: '/adminapi/exame/exameAdd',
  exameEdit: '/adminapi/exame/exameEdit',
  exameDelete: '/adminapi/exame/exameDelete',
  exameDetail: '/adminapi/exame/exameDetail',


  videoList: '/adminapi/exame/videoList',
  videoScore: '/adminapi/exame/videoScore',
  videoDetail: '/adminapi/exame/videoDetail',
}

export default api

export function studentOptions(parameter) {
  return axios({
    url: api.studentOptions,
    method: 'get',
    params: parameter
  })
}
export function cateTreeList(parameter) {
  return axios({
    url: api.cateTreeList,
    method: 'get',
    params: parameter
  })
}
export function exameList(parameter) {
  return axios({
    url: api.exameList,
    method: 'get',
    params: parameter
  })
}
export function exameAdd(parameter) {
  return axios({
    url: api.exameAdd,
    method: 'post',
    data: parameter
  })
}
export function exameEdit(parameter) {
  return axios({
    url: api.exameEdit,
    method: 'post',
    data: parameter
  })
}
export function exameDelete(parameter) {
  return axios({
    url: api.exameDelete,
    method: 'post',
    data: parameter
  })
}
export function exameDetail(parameter) {
  return axios({
    url: api.exameDetail,
    method: 'get',
    params: parameter
  })
}




export function videoList(parameter) {
  return axios({
    url: api.videoList,
    method: 'get',
    params: parameter
  })
}
export function videoScore(parameter) {
  return axios({
    url: api.videoScore,
    method: 'post',
    data: parameter
  })
}
export function videoDetail(parameter) {
  return axios({
    url: api.videoDetail,
    method: 'get',
    params: parameter
  })
}


